$(document).ready(function() {

	$("#bu").click(function(event) {
		$("#log").remove();
		$("#bu").after('<table id="log"></table>');
		$("#log").append('<tr><th>qwe</th><th>qwe</th><th>qwe</th></tr>');
		$("#log").append('<tr><td>ass</td><td>ass</td><td>ass</td></tr>')
	});

});